package com.mo.service.impl;


import com.mo.dao.SysMenuDao;
import com.mo.pojo.SysMenu;
import com.mo.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysMenuServiceImpl implements SysMenuService {

@Autowired
private SysMenuDao service;
    @Override
    public List<SysMenu> findMenus() {
        return service.selectMenus();
    }

    @Override
    public SysMenu findById(Integer id) {
        return service.selectById(id);
    }
}
